Skip to content

feat(settings): register stop_and_terminate_on_last_video_session - #96

Merged
Yundi339 merged 1 commit into
mainfrom
feat/register-stop-and-terminate
Nov 30, 2026
Merged

Yundi339 merged 1 commit into
mainfrom
feat/register-stop-and-terminate

Conversation

@Yundi339

Copy link
Copy Markdown
Member

背景

foundation-sunshine 的 PR (AlkaidLab/foundation-sunshine#1556) 新增了「断开后同时结束应用」设置(stop_and_terminate_on_last_video_session),它的搜索索引条目需要 registry 里有对应的 tier/control 定义,否则 settingsdata-meta 测试会报 settings without a registry entry。

修改

  • SETTING_META 注册 stop_and_terminate_on_last_video_session: S(2, false),紧邻 stop_on_last_video_session。

Sunshine adds an auto-end toggle that keeps the app running unless this companion switch is enabled; register it so the settings registry and the meta tests cover the new row.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • 新功能
    • 设置中新增“最后一个视频会话结束时停止并终止”开关,默认关闭。

新增设置项 stop_and_terminate_on_last_video_session。该设置项为层级 2 的开关,默认值为 false。

Changes: 视频会话设置

Layer / File(s) Summary
添加设置元数据
src/settings/meta.js
新增 stop_and_terminate_on_last_video_session 开关设置,层级为 2,默认值为 false。

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Feature

Suggested reviewers: skyhua0224

Merge Risk: Minimal · up to 2254d

This adds a default-off setting entry that the settings search index needs. It is low risk and ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题描述了本次变更的主要内容:在 settings 中注册 stop_and_terminate_on_last_video_session 设置项。该标题与变更集直接相关,且符合 SETTING_META 新增一项设置的实际改动。
Description check Passed 描述说明了变更原因:关联的 foundation-sunshine PR #1556 新增了该设置,其搜索索引需要 registry 中的定义,否则 settingsdata-meta 测试会失败。描述还列出了具体修改:在 SETTING_META 中注册 S(2, false),位于 stop_on_last_video_session 旁边。这与变更集一致。
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

小兔看见新开关,
轻轻添进设置栏。
默认关闭安静待,
层级二中有位置。
月光下,代码收工,
小兔蹦跳回家去。

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b9ddae2d-cb48-4006-a44d-2dd77122126e
Commits

Reviewing files that changed from the base of the PR and between 169dd54 and 2254d8f.

Files selected for processing: 1

  • src/settings/meta.js

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@Yundi339
Yundi339 merged commit 3b1bebb into main Nov 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant